package com.common.library.util;

import com.zs4sdk.entity.Zs4GameData;

import android.util.Log;
/**
 * Log 帮助类
 * @author ZuoZiJi-Y.J
 *
 */
public class LogUtil {

	
	public static void d(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.d(tag, msg);
		}
	}
	
	public static void i(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.i(tag, msg);
		}
	}
	
	public static void e(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.e(tag, msg);
		}
	}
	
	public static void e(String tag, String msg, Throwable tr){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.e(tag, msg, tr);
		}
	}
	
	public static void v(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.v(tag, msg);
		}
	}
	
	public static void w(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.w(tag, msg);
		}
	}
	
	public static void wtf(String tag, String msg){
		if(Zs4GameData.getInstance().isShowLog()){
			Log.wtf(tag, msg);
		}
	}
}
